package com.xm.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
/**
* @Description: 会员实体类
* @Author: Mr.Wang
* @Date: 2020/8/6
*/
public class Ranks{
	//属性
	private Integer rankId;
	//等级名称
	private String rankName;
	//开始积分
	private Integer startScore;
	//结束积分
	private Integer endScore;
	//享受折扣
	private Integer rebate;
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//构造器
	public Ranks(){}
	public Ranks(Integer rankId,String rankName,Integer startScore,Integer endScore,Integer rebate,Date createTime){
		this.rankId=rankId;
		this.rankName=rankName;
		this.startScore=startScore;
		this.endScore=endScore;
		this.rebate=rebate;
		this.createTime=createTime;
}
	//getter setter方法
	public void setRankId(Integer rankId){
		this.rankId=rankId;
	}
	public Integer getRankId(){
		return rankId;
	}
	public void setRankName(String rankName){
		this.rankName=rankName;
	}
	public String getRankName(){
		return rankName;
	}
	public void setStartScore(Integer startScore){
		this.startScore=startScore;
	}
	public Integer getStartScore(){
		return startScore;
	}
	public void setEndScore(Integer endScore){
		this.endScore=endScore;
	}
	public Integer getEndScore(){
		return endScore;
	}
	public void setRebate(Integer rebate){
		this.rebate=rebate;
	}
	public Integer getRebate(){
		return rebate;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}
	public Date getCreateTime(){
		return createTime;
	}
	public String toString(){
		return "Ranks [rankId=" + rankId + ", rankName=" + rankName + ", startScore=" + startScore + ", endScore=" + endScore + ", rebate=" + rebate + ", createTime=" + createTime + "]";
	}
}

